<?php if($staff_as_client != 'true'){?>
<!-- Smartsupp Live Chat script -->
<script type="text/javascript">
var _smartsupp = _smartsupp || {};
_smartsupp.key = 'YOUR_SUPPORTSUPP_KEY';
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
<?php }elseif($this->Html->ifSet($logged_in)){ ?>
<script>
smartsupp('name', '<?php echo $contact->first_name;echo ' '; echo $contact->last_name; ?>');
smartsupp('email', '<?php echo $contact->email; ?>');
smartsupp('phone', '<?php echo $this->Html->_($contact->numbers); ?>');
smartsupp('variables', {
Client_ID: "<?php echo $this->Html->_($client->id_code); ?>",
Customer_since: "<?php echo strtotime($client->date_added); ?>",
Company_name: "<?php echo $this->Html->_($contact->company); ?>",
Contact_type: "<?php echo $this->Html->_($contact->contact_type); ?>",
});
</script>
<?php } ?>
This will allow you to get blesta information about your client.